<?php

namespace App\Model;

use App\Models\Role;
use App\Models\Traits\Btn;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User;
use Illuminate\Database\Eloquent\SoftDeletes;

class Admin extends User
{
    use SoftDeletes,Btn;
    // 黑名单
    protected $guarded = [];
    # 软删除
    protected $datas = ["deleted_at"];
    public function role(){
        return $this->belongsTo(Role::class,"role_id");
    }
}
